From 0e4cbd29d85d7919c79a9741cf32659b2d9026e2 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Sat, 19 May 2007 01:38:25 +0000 Subject: [PATCH] minor fix -- $ns must be int before comparison --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Title.php b/includes/Title.php index 1e2bff6693..63b0485442 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -232,7 +232,7 @@ class Title { $t = new Title(); $t->mInterwiki = ''; $t->mFragment = ''; - $t->mNamespace = intval( $ns ); + $t->mNamespace = $ns = intval( $ns ); $t->mDbkeyform = str_replace( ' ', '_', $title ); $t->mArticleID = ( $ns >= 0 ) ? -1 : 0; $t->mUrlform = wfUrlencode( $t->mDbkeyform ); -- 2.20.1